﻿''' <summary>
Imports System.Xml.Serialization
''' The simple data types we allow for aggregate keys.
''' </summary>
Public Module SimpleKeyDataType

    Public Enum KeyDataType
        ''' <summary>
        ''' The key is an unique string with some business meaning
        ''' </summary>
        <XmlEnum(Name:="String")>
        DataTypeString = 0
        ''' <summary>
        ''' The key is a system maintained sequential number that has no business meaning
        ''' </summary>
        <XmlEnum(Name:="Integer")>
        DataTypeInteger = 1
        ''' <summary>
        ''' The key is a globally unique identifier
        ''' </summary>
        <XmlEnum(Name:="GUID")>
        DataTypeGUID = 2
    End Enum

    ''' <summary>
    ''' The key is an unique string with some business meaning
    ''' </summary>
    Public Const DataType_String As String = "String"

    ''' <summary>
    ''' The key is a system maintained sequential number that has no business meaning
    ''' </summary>
    Public Const DataType_Integer As String = "Integer"

    ''' <summary>
    ''' The key is a globally unique identifier
    ''' </summary>
    Public Const DataType_GUID As String = "GUID"

End Module
